<template>
  <div class="test" ref="test">
    <Empty></Empty>
    <button @click="handleClick">click</button>
  </div>
</template>

<script>
import Empty from "./";
export default {
  components: { Empty },
  methods: {
    handleClick() {
      this.$showMessage({
        content: "点我干嘛",
        container: this.$refs.test,
        type: "success",
        callback: () => {
          "完成啦";
        },
      });
    },
  },
};
</script>

<style lang="less" scoped>
.test {
  height: 200px;
}
</style>
